<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class UserPointsDetail extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'user_points_details';

    const CREATED_AT = 'change_time';
    const UPDATED_AT = null;

    protected $fillable = [
        'user_id',
        'change_type',
        'points',
        'remark'
    ];

    public function user()
    {
        return $this->belongsTo(User::class,'user_id');
    }

}
